import axios from 'axios';
import global from '../../assets/js/global'
let second = global.second;//秒合约  --- wsg
//所有盘口
export const scontractList = params => { return axios.post(`${second}/scontract/list`, params).then(res => res) };
//当前场
export const scontractSetting = params => { return axios.post(`${second}/scontract/setting`, params).then(res => res) };
//下一场
export const scontractBuying = params => { return axios.post(`${second}/scontract/buying`, params).then(res => res) };
//下注
export const repositoryOrder = params => { return axios.post(`${second}/scontract/repository/order`, params).then(res => res) };
//账单类型
export const walletRcdType = params => { return axios.post(`${second}/scontract/wallet/rcdType`, params).then(res => res) };
//秒合约进行中下注
export const repositoryList = params => { return axios.post(`${second}/scontract/repository/list`, params).then(res => res) };
//秒合约已完成下注
export const repositoryHistory = params => { return axios.post(`${second}/scontract/repository/history`, params).then(res => res) };
//秒合约钱包
export const walletGet = params => { return axios.post(`${second}/scontract/wallet/get`, params).then(res => res) };
//合约账单
export const walletRecord = params => { return axios.post(`${second}/scontract/wallet/record`, params).then(res => res) };
//划转
export const walletTransfer = params => { return axios.post(`${second}/scontract/wallet/transfer`, params).then(res => res) };


let person = global.center;//个人中心  --- zk
//用户余额
export const userWalletList = params => { return axios.get(`${person}/userWallet/list`, {params:params}).then(res => res) };